package com.tifa.vote.service.impl;

import com.tifa.vote.bean.User;
import com.tifa.vote.dao.UserDao;
import com.tifa.vote.service.UserService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Classname UserServiceImpl
 * @Description
 * @Date 2022/6/15 12:47
 * @Created by hengyuan
 */
@Service
public class UserServiceImpl implements UserService {

  @Autowired
  private UserDao userDao;

  @Override
  public List<User> getUsers() {
    return userDao.getUsers();
  }

  @Override
  public void addUser(User user) {
    userDao.addUser(user);
  }
}
